package com.alex.seo.contentsource;

import java.util.Arrays;
import java.util.Random;

import com.alex.seo.contentsource.dto.ContentDTO;

public class TestContentSource implements ContentSource {

	@Override
	public ContentDTO getContent() throws NoContentException {
		Random random = new Random();
		if (random.nextBoolean()) {
			return new ContentDTO("Test", "Bla-bla-bla, bla-bla-bla, bla-bla-bla.", Arrays.asList("1", "2", "3"));
		} else {
			throw new NoContentException("!!!!");
		}
	}

}
